//
//  NewsSecondTableViewCell.m
//  xpkc
//
//  Created by 胡志飞 on 15/11/26.
//  Copyright © 2015年 TopSage. All rights reserved.
//

#import "NewsTypeTableViewCell.h"

@implementation NewsTypeTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        
        [self createUI];
        
    }
    
    return self;
}

-(void)createUI{
    
    self.namelabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 10, SCREEN_WIDTH - 40, 60)];
    
    self.namelabel.numberOfLines = 2;
    self.namelabel.font = [UIFont systemFontOfSize:18.0f];
    [self.contentView addSubview:self.namelabel];
    
    
    self.descLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 70 , SCREEN_WIDTH - 40,20)];
    self.descLabel.font = [UIFont systemFontOfSize:14.0f];
    self.descLabel.textColor = [UIColor grayColor];
    [self.contentView addSubview:self.descLabel];
    
    //    self.lineLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 89, SCREEN_WIDTH, 1)];
    //    self.lineLabel.layer.borderWidth = 1;
    //    self.lineLabel.layer.borderColor = [[UIColor lightGrayColor] CGColor];
    //    [self.contentView addSubview:self.lineLabel];
    
}

@end
